package com.snopy.designPattern.command.impl;

import com.snopy.designPattern.command.inter.Order;

/**
 * @author snopy
 * @version 1.0.0
 * @classname SellStock
 * @description
 * @email 77912204@qq.com
 * @date 2022/03/04 14:51
 */
public class SellStock implements Order {

    private Stock stock;

    public SellStock(Stock stock) {
        this.stock = stock;
    }

    @Override
    public void excute() {
        stock.sell();
    }
}
